const runtime.sweepDrainedMask
10 uses
runtime (current package)
mgc.go#L184: sweep.active.state.Store(sweepDrainedMask)
mgcsweep.go#L119: const sweepDrainedMask = 1 << 31
mgcsweep.go#L151: if state&sweepDrainedMask != 0 {
mgcsweep.go#L168: if (state&^sweepDrainedMask)-1 >= sweepDrainedMask {
mgcsweep.go#L172: if state-1 != sweepDrainedMask {
mgcsweep.go#L196: if state&sweepDrainedMask != 0 {
mgcsweep.go#L199: if a.state.CompareAndSwap(state, state|sweepDrainedMask) {
mgcsweep.go#L207: return a.state.Load() &^ sweepDrainedMask
mgcsweep.go#L214: return a.state.Load() == sweepDrainedMask
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |